<!--文件管理<div style="display:none;">--> 
<style type="text/css">
#file {
    position: absolute;
    top: 20px;
    height: 82%;
    right: 20px;
    width: 200px;
    overflow: auto;
    border: 10px solid #c1c1c1;
    background-color: #ffffff;
	z-index:999999;
}
.filehide {
    font-size: 30px;
    color: #fd5f56;
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: #ffffff;
    z-index: 999999;
	cursor:pointer;
}
</style>
<div class="fileimg" style="display:none;">
    <div class="x-body" id="file" >
	 <i class="layui-icon layui-icon-face-smile filehide">&#x1007;</i>   
      <table class="layui-table">
        <thead>
          <tr>
            <th>预览</th>
            <th>操作</th>
        </tr></thead>
        <tbody>
		{volist name=":fun_s('file',array('img'=>1),'id desc',100,1)" id="vo"}
          <tr>
            <td><img src="{$vo.savepath}" height="80" width="80" title="{$vo.name}"/></td>
            <td class="td-status">
              <button class="layui-btn layui-btn-normal layui-btn-mini" id="charu{$vo.id}">插入</button>
			</td>
          </tr>
		  <script>
		  $(document).ready(function(){
		    $("#charu{$vo.id}").click(function(){
		      $("#pic").val('{:str_replace('\\\\', '\\/', $vo.savepath)}');  
		    });
		  });
		  </script>
		{/volist}  
        </tbody>
      </table>
    </div>
</div>
<script>
$(document).ready(function(){
  $(".filehide").click(function(){
    $(".fileimg").hide(500);
  });
  $(".show").click(function(){
    $(".fileimg").toggle(500); 
  });
});
</script>